package com.whcoding.base.project.common.api;

import lombok.Getter;

/**
 * @program: spring-boot-learning
 * @description:业务异常 枚举
 * @author: whcoding
 * @create: 2022-06-30 11:26
 **/
@Getter
public enum AppCode implements IResultCode {

	APP_ERROR(2000, "业务异常"),
	DEPT_NOT_EXIST(2004, "部门不存在");

	private Integer code;
	private String message;

	AppCode(Integer code, String message) {
		this.code = code;
		this.message = message;
	}
}
